while True:
	try:
		a,b=map(int,input().split())
		count=0
		carry=0
		if a==b==0:
			break
		while a!=0 or b!=0:
			if a%10+b%10+carry>9:
				count+=1
				carry=1
			a//=10
			b//=10
		if count==0:
			print('No carry operation.')
		elif count==1:
			print('1 carry operation.')
		else:
			print(str(count)+' carry operations.')
	except:
		break